<template>
  <div class="form-control-ml">
    <attach-list :attath-data="attachList" :show-label="false"></attach-list>
  </div>
</template>

<script>
import { attachAdapter } from '@/bank/components/attach/index'
import { arrayFromString } from '@vimi/utils-tool'
import AttachList from '@/bank/components/attach/List'
export default {
  components: {
    AttachList,
  },
  props: {
    attachment: String,
  },
  data() {
    return {}
  },
  computed: {
    attachList() {
      const data = arrayFromString(this.attachment).map(item => {
        return {
          attachment: item,
        }
      })
      const attachData = data.map(attachAdapter)
      return [
        {
          tag: '检查附件',
          attachs: attachData,
        },
      ]
    },
  },
  watch: {},
  created() {},
  mounted() {},
  methods: {},
}
</script>

<style lang="scss" scoped></style>
